package com.unism.unisdk.api.dingding.service.isv;

import com.unism.unisdk.api.dingding.model.Node;
import com.unism.unisdk.api.dingding.model.UnismResponse;
import com.unism.unisdk.common.OpenAPI;
import com.unism.unisdk.common.OpenService;
import com.unism.unisdk.common.ServiceException;
import com.unism.unisdk.common.enumObj.HttpMethod;
import com.unism.unisdk.common.enumObj.Location;
import com.unism.unisdk.common.enumObj.ParamAttr;

@OpenService
public abstract interface CorpConnectionService{
	
	  @OpenAPI(httpMethod=HttpMethod.GET, uriPath="/gettoken", resultJsonKey="access_token")
	  public abstract String getCorpToken(@ParamAttr(location=Location.URL, paramName="corpid") String paramString1, @ParamAttr(location=Location.URL, paramName="corpsecret") String paramString2)
	    throws ServiceException;
	 /* @OpenAPI(httpMethod=HttpMethod.POST, uriPath="/access/event/change", resultJsonKey="access_token")
	  public abstract UnismResponse<Node> getInfor(@ParamAttr(location=Location.JSON_CONTENT, paramName="timestamp") String timestamp)
	    throws ServiceException;*/
	  @OpenAPI(httpMethod=HttpMethod.POST, uriPath="/access/event/change", resultJsonKey="access_token")
	  public abstract UnismResponse<Node> getInfor(@ParamAttr(location=Location.FROM_CONTENT, paramName="timestamp") String timestamp)
	    throws ServiceException;
}
